import { ObjCreate } from "../common/ObjCreate";
import { ImagesConst } from "../../resource/ImagesConst";
import { ChristmasCardGoodTipsPart } from "./ChristmasCardGoodTipsPart";
import { Language } from "../../../../extend/language/Language";
import { GButton } from "../../../../com/mui/controls/GButton";
//class ChristmasCardGoodTips
    
    export  class ChristmasCardGoodTips /* flash.display.Sprite */
    {
        constructor()
        {
            
            this.initView();
            return;
        }

        /* internal  */initView(): void
        {
            ObjCreate.createBg(0, 0, 163, 200, this, ImagesConst.ToolTipBg);
            var loc1=new ChristmasCardGoodTipsPart(Language.getString(71225), [34011630, 8004910, 14012327, 990305, 990302]);
            addChild(loc1);
            loc1.x = 4;
            this._closeBtn = ObjCreate.createGButton("", 142, 2, 19, 19, this, "CloseButton");
            this._closeBtn.addEventListener(flash.events.MouseEvent.CLICK, this.onCloseBtnClickHandler);
            return;
        }

        /* internal  */onCloseBtnClickHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            if (this.parent) 
            {
                this.parent.removeChild(this);
            }
            return;
        }

        /* internal */ /* var */_closeBtn: GButton;
    }
